package net.neptech.node;

import cn.hutool.extra.spring.SpringUtil;
import org.springframework.core.env.Environment;

/**
 * @Author Saya
 * @Date 2025/8/19 15:43
 * @Description TODO
 **/
public class NodeDataStoreFactory {
    public static DataStoreHandler getInstance() {
        Environment environment = SpringUtil.getBean(Environment.class);
        String mapNodeDataStore = environment.getProperty("node.data.store", "mapNodeDataStore");
        return SpringUtil.getBean(mapNodeDataStore, DataStoreHandler.class);
    }
}
